<?php //include_once(dirname(__FILE__) . '/tpl/admin.php');//admin tpl//add dk_blogger_list option page function my_add_pages() {    add_menu_page(__('Dk_Locator_Setting'), __('Directory Listing'), 'edit_posts', 'dk_locator_setting', 'dk_locator_render', '', 7);	add_submenu_page('dk_locator_setting', __('Add Locations'), __('Add Locations'), 'edit_posts', 'dk_locator_add', 'dk_locator_add_render');}function dk_locator_render() {    global $title;    dk_locator_manage_tpl();}function dk_locator_add_render(){	dk_locator_add_tpl();}add_action('admin_menu', 'my_add_pages');//style scriptfunction dazake_blogger_load_script() {    if (!is_admin()) {        /**         * load stylesheet         */       wp_enqueue_style( 'bootstrap', plugins_url( '/css/style.css' , __FILE__ ) );    }}add_action('init', 'dazake_blogger_load_script');include_once(dirname(__FILE__) . '/core/function.php');//admin tpl
include_once(dirname(__FILE__) . '/tpl/admin.php');//admin tpl

//add dk_blogger_list option page 
function my_add_pages() {
    add_menu_page(__('Dk_Locator_Setting'), __('Directory Listing'), 'edit_posts', 'dk_locator_setting', 'dk_locator_render', '', 7);
	add_submenu_page('dk_locator_setting', __('Add Locations'), __('Add Locations'), 'edit_posts', 'dk_locator_add', 'dk_locator_add_render');
}

function dk_locator_render() {
    global $title;
    dk_locator_manage_tpl();
}

function dk_locator_add_render(){
	dk_locator_add_tpl();
}

add_action('admin_menu', 'my_add_pages');



//style script
function dazake_blogger_load_script() {
    if (!is_admin()) {
       wp_enqueue_style( 'bootstrap', plugins_url( '/css/style.css' , __FILE__ ) );
    }
}
add_action('init', 'dazake_blogger_load_script');